﻿////页面加载
//$(document).ready(function () {
//    $("#txtCode").bind("change", txtCode_change);
   
//})

$(document).on("pageinit", "#mainPage", function () {
    $("#txtCode").bind("change", txtCode_change);
});

function txtCode_change()
{
    var v_cardCode = $("#txtCode").val();
    if (v_cardCode != "") {

        window.location.href = "/WeiXin/MyOrder?CardCode=" + v_cardCode;
    }
}

function btnDel_click(e)
{
    var v_orderID = $(e).find("input[name='AID']").val();
    var v_isPay = $(e).find("#IsPay").html();
    if (v_isPay == "否") {
        window.location.href = "/WeiXin/CheckBill?OrderID=" + v_orderID;
    }
}